const path = require('path');

module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        useBuiltIns: 'usage',
        // modules: 'umd',
        corejs: 3,
      },
    ],
    [
      '@babel/preset-react', // 允许你在JSX文件中使用React
      {
        runtime: 'automatic',
      },
    ],
    // ['@babel/preset-typescript'],
  ],
  // exclude: [path.resolve(__dirname, 'node_modules/ckeditor5')],
  // include: [path.resolve(__dirname, 'src')],
  plugins: [
    '@babel/plugin-transform-runtime',
    // '@babel/plugin-transform-modules-umd',
    // '@babel/plugin-transform-object-assign',
    // '@babel/plugin-proposal-export-namespace-from',
    // '@babel/plugin-proposal-class-properties',
    '@babel/plugin-transform-arrow-functions',
  ],
};
